﻿@model Ninesky.Web.Models.NoticeViewModel

<dl class="center-block" style="width:300px">
    @switch (Model.Type)
    {
        case Models.NoticeType.succee:
            <dt class="text-success">
                <span class="glyphicon glyphicon-ok-sign"></span> @Model.Title
            </dt>
            break;
        case Models.NoticeType.warning:
            <dt class="text-warning">
                <span class="glyphicon glyphicon-minus-sign"></span> @Model.Title
            </dt>
            break;
        case Models.NoticeType.faile:
            <dt class="text-danger">
                <span class="glyphicon glyphicon-remove-sign"></span> @Model.Title
            </dt>
            break;
        case Models.NoticeType.info:
            <dt class="text-info">
                <span class="glyphicon glyphicon-info-sign"></span> @Model.Title
            </dt>
            break;
        default:
            <dt class="text-info">
                <span class="glyphicon glyphicon-info-sign"></span> @Model.Title
            </dt>
            break;
    }

    <dd>@Model.Message</dd>
    <dd>
        @if (Model.Links != null)
        {
            foreach (var item in Model.Links)
            {
                <a class="btn btn-default" href="@item.Value" role="button">@item.Key</a>
            }
        }
    </dd>
</dl>